package com.dhc.quartz;

import org.quartz.*;
import org.quartz.impl.StdSchedulerFactory;


public class SchedulerListenerActive implements SchedulerListener{

    @Override
    public void jobScheduled(Trigger trigger) {
        System.out.println("完成部署");
    }

    @Override
    public void jobUnscheduled(TriggerKey triggerKey) {
        System.out.println("完成卸载");
    }

    @Override
    public void triggerFinalized(Trigger trigger) {
        System.out.println("触发器被移除");
    }

    @Override
    public void triggerPaused(TriggerKey triggerKey) {
        System.out.println("正在被暂停");
    }

    @Override
    public void triggersPaused(String s) {
        System.out.println("触发器组正在被暂停");
    }

    @Override
    public void triggerResumed(TriggerKey triggerKey) {
        System.out.println("正在从暂停中恢复");
    }

    @Override
    public void triggersResumed(String s) {
        System.out.println("触发器组正在从暂停中恢复");
    }

    @Override
    public void jobAdded(JobDetail jobDetail) {
        System.out.println("添加工作任务");
    }

    @Override
    public void jobDeleted(JobKey jobKey) {
        System.out.println("删除工作任务");
    }

    @Override
    public void jobPaused(JobKey jobKey) {
        System.out.println("工作任务正在被暂停");
    }

    @Override
    public void jobsPaused(String s) {
        System.out.println("工作组正在被暂停");
    }

    @Override
    public void jobResumed(JobKey jobKey) {
        System.out.println("正在从暂停中恢复");
    }

    @Override
    public void jobsResumed(String s) {
        System.out.println("工作组正在从暂停中恢复");
    }

    @Override
    public void schedulerError(String s, SchedulerException e) {
        System.out.println("产生严重错误时调用");
    }

    @Override
    public void schedulerInStandbyMode() {
        System.out.println("调度器被挂起模式调用");
    }

    @Override
    public void schedulerStarted() {
        System.out.println("调度器开启时调用");
    }

    @Override
    public void schedulerStarting() {
        System.out.println("调度器正在开启时调用");
    }

    @Override
    public void schedulerShutdown() {
        System.out.println("调度器关闭时调用");
    }

    @Override
    public void schedulerShuttingdown() {
        System.out.println("调度器正在关闭时调用");
    }

    @Override
    public void schedulingDataCleared() {
        System.out.println("调度器的数据被清除的时候调用");
    }
}
